    var sum=0
    var delimg = document.body
    delimg.onclick = function(evt){
        var e = evt || window.event
        var target = e.target || e.srcElement
        if(target.nodeName === "IMG")
        {
            delimg.removeChild(target)
        }
    }
    
    setInterval(function(){
        var imgobj = document.createElement("img")
        imgobj.src = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F015bf75979bbcba8012193a3515cc2.gif&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1641035060&t=6ec36843553a061141b3d1cdeb6c450f"
        var min = 30
        var max = 90
        imgobj.width = Math.floor(Math.random()*(max-min+1)+min)
        imgobj.style.position = "absolute"
        var min = 0
        var max = (window.innerWidth || document.documentElement.clientWidth) - imgobj.width
        imgobj.style.left = Math.floor(Math.random()*(max-min+1)+min) + "px"
        var max = (window.innerHeight || document.documentElement.clientHeight) - imgobj.width
        imgobj.style.top = Math.floor(Math.random()*(max-min+1)+min) + "px"
        document.body.appendChild(imgobj)
    },1000)
    
    var widthdata = 200
    t=setInterval(function(){
        widthdata = widthdata-20
        document.querySelector(".box2").style.width = widthdata+"px"
        if(widthdata < 0)
        {
            alert("game over")
            clearInterval(t)
        }
         
    },1000)
    
    
